package sy.service.${classname};

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.model.entity.${className};

import sy.dao.${classname}.${className}Dao;


@Service("${classname}Service")
public class ${className}Service {

	@Autowired
	private ${className}Dao ${classname}Dao;
	
	
	public ${className} get(int id) {
		return ${classname}Dao.get(id);
	}
	
	
	@Transactional
	public void save(${className} ${classname}) {
		${classname}Dao.save(${classname});
	}
	
	@Transactional
	public void update(${className} ${classname}) {
		${classname}Dao.update(${classname});
	}

}